package com.wgts.wgts.localbean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class ProductSpecifications  implements Parcelable {

    public int attributeId;
    public String attributeName;
    public List<String> attributeValueList;

    protected ProductSpecifications(Parcel in) {
        attributeId = in.readInt();
        attributeName = in.readString();
        attributeValueList = in.createStringArrayList();
    }

    public static final Creator<ProductSpecifications> CREATOR = new Creator<ProductSpecifications>() {
        @Override
        public ProductSpecifications createFromParcel(Parcel in) {
            return new ProductSpecifications(in);
        }

        @Override
        public ProductSpecifications[] newArray(int size) {
            return new ProductSpecifications[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(attributeId);
        dest.writeString(attributeName);
        dest.writeStringList(attributeValueList);
    }

    public ProductSpecifications(){}
}
